package com.example.braden.answergame.modules.main.domain;

import java.util.List;

/**
 * Created by braden on 2018/3/16.
 */

public class QuestionEntity extends BaseMessage {

    public BodyBean body;

    public BodyBean getBody() {
        return body;
    }

    public void setBody(BodyBean body) {
        this.body = body;
    }

    public static class BodyBean {
        /**
         * rid : 8f6162d7605cfa6d12586022e4c96b88
         * gid : 1
         * qid : 123456
         * answers : [{"key":1,"value":"答案1"},{"key":2,"value":"答案2"},{"key":3,"value":"答案3"}]
         * question : 测试问题123456？？？
         * right : 3
         * bonus : 100
         */

        private String rid;
        private String gid;
        private int qid;
        private String question;
        private int right;
        private int bonus;
        private int qnum;
        private List<AnswersBean> answers;

        public int getQnum() {
            return qnum;
        }

        public void setQnum(int qnum) {
            this.qnum = qnum;
        }

        public String getRid() {
            return rid;
        }

        public void setRid(String rid) {
            this.rid = rid;
        }

        public String getGid() {
            return gid;
        }

        public void setGid(String gid) {
            this.gid = gid;
        }

        public int getQid() {
            return qid;
        }

        public void setQid(int qid) {
            this.qid = qid;
        }

        public String getQuestion() {
            return question;
        }

        public void setQuestion(String question) {
            this.question = question;
        }

        public int getRight() {
            return right;
        }

        public void setRight(int right) {
            this.right = right;
        }

        public int getBonus() {
            return bonus;
        }

        public void setBonus(int bonus) {
            this.bonus = bonus;
        }

        public List<AnswersBean> getAnswers() {
            return answers;
        }

        public void setAnswers(List<AnswersBean> answers) {
            this.answers = answers;
        }

        public static class AnswersBean {
            /**
             * key : 1
             * value : 答案1
             */

            private int key;
            private String value;
            private boolean isChoose;//是否选择了该选项
            private boolean isRemoveCard;//该选项是否是排除卡指定的选项

            public boolean isRemoveCard() {
                return isRemoveCard;
            }

            public void setRemoveCard(boolean removeCard) {
                isRemoveCard = removeCard;
            }

            public boolean isChoose() {
                return isChoose;
            }

            public void setChoose(boolean choose) {
                isChoose = choose;
            }

            public int getKey() {
                return key;
            }

            public void setKey(int key) {
                this.key = key;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }
        }
    }
}
